package cn.itsource.controller;

import cn.itsource.domain.user.User;
import cn.itsource.feign.user.UserFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {


    @Autowired
    UserFeignClient userFeignClient;

    @GetMapping("findById/{id}")
    public User findById(@PathVariable Long id){
        return userFeignClient.findOne(id);
    };
}
